home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / builderExamples / stopwatch / ControlDerived.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  828 b   |  36 lines

  1. //////////////////////////////////////////////////////////////
  2. //
  3. // Header file for ControlDerived a subclass template
  4. //
  5. //    This file is generated by BuilderXcessory, ViewKit code generator.
  6. //////////////////////////////////////////////////////////////
  7. #ifndef CONTROLDERIVED_H
  8. #define CONTROLDERIVED_H
  9. #include "Control.h"
  10.  
  11. class VkPeriodic; // Typed line
  12.  
  13. class ControlDerived : public Control
  14. {
  15.   protected:
  16.  
  17.     // These functions will be called as a result of callbacks
  18.     // registered in Control
  19.  
  20.     virtual void start(Widget, XtPointer);
  21.     virtual void stop(Widget, XtPointer);
  22.  
  23.     VkPeriodic *_timer; // Typed line
  24.  
  25.   private: 
  26.  
  27.   public:
  28.  
  29.     ControlDerived(const char *, Widget);
  30.     ~ControlDerived();
  31.     const char *   className();
  32.     void attach(VkPeriodic *t) { _timer = t;} // Typed line
  33. };
  34. #endif
  35.  
  36.